<?php


namespace part16_StateMode\Code4;

/**
 * 睡眠状态
 */
class SleepingState extends State
{
    public function writeProgram($work)
    {
        echo "当前时间：{$work->getHour()} 点 不行了，睡着了。\n";
    }
}